import {Button} from "antd"

const columns =(showModal:any)=> [
    {
      title: "订单号",
      dataIndex: "orderNo",
      key: "orderNo",
    },
    {
      title: "产品名称",
      dataIndex: "productName",
      key: "productName",
    },
    {
      title: "产品规格",
      dataIndex: "productSpec",
      key: "productSpec",
    },
    {
      title: "姓名",
      dataIndex: "userName",
      key: "userName",
    },
    {
      title: "电话",
      dataIndex: "userPhone",
      key: "userPhone",
    },
    {
      title: "做工人员",
      dataIndex: "workUserName",
      key: "workUserName",
    },{
      title: "做工价格",
      dataIndex: "workPrice",
      key: "workPrice",
    },{
      title: "剪裁人员",
      dataIndex: "cutUserName",
      key: "cutUserName",
    },{
      title: "剪裁价格",
      dataIndex: "cutPrice",
      key: "cutPrice",
    },{
      title: "下单时间",
      dataIndex: "orderTime",
      key: "orderTime",
    },{
      title: "交货时间",
      dataIndex: "deliveryTime",
      key: "deliveryTime",
    },{
      title: "发货时间",
      dataIndex: "shippingTime",
      key: "shippingTime",
    },{
      title: "发货地址",
      dataIndex: "shippingAddr",
      key: "shippingAddr",
    },{
      title: "快递单号",
      dataIndex: "trackingNumber",
      key: "trackingNumber",
    },
    {
      title: "快递公司",
      dataIndex: "trackingCompany",
      key: "trackingCompany",
    },{
      title: "是否已发货",
      dataIndex: "deliveryFlag",
      key: "deliveryFlag",
    },{
      title: "订单状态",
      dataIndex: "orderStatus",
      key: "orderStatus",
    },
    {
      title: "操作",
      dataIndex: "operation",
      key: "operation",
      render: (_: any, record: any) => (
        <Button onClick={() => showModal(record)}>编辑</Button>
      ),
    },
  ];

  export  {columns};
  